<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <jsp:include page="../incHead.jsp">
        <jsp:param name="title" value="editMushroom.title" />
    </jsp:include>
    <body>        
        <jsp:include page="../incHeader.jsp"/>
        <div id="container">
            <jsp:include page="../incMenu.jsp"/>
            <div id="content">
                <div class="divOfItems">
                <div id="title_subsection">
                    <h3><fmt:message key="forestVisit.mushroomsFoundList"/></h3>
                </div>
                <table class="allTable">
                    <th><fmt:message key="mushroom.name"/></th>
                    <th><fmt:message key="mushroom.type"/></th>
                    <th><fmt:message key="mushroom.occurenceFrom"/></th>
                    <th><fmt:message key="mushroom.occurenceTo"/></th>
                    <c:forEach var="mushroom" items="${mushrooms}" >
                        <tr>
                            <td><c:out value="${mushroom.name}" /></td>
                            <td><fmt:message key="${mushroom.type}"/></td>
                            <td><fmt:message key="${mushroom.occurenceFrom}"/></td>
                            <td><fmt:message key="${mushroom.occurenceTo}"/></td>                           
                        </tr>
                    </c:forEach>
                </table>    
                <p class="error">${error}</p>
                <a href="forestVisit" ><fmt:message key="forestVisit.back" /></a>
            </div>
            </div>
        </div>
    </body>
</html>
